package cn.ac.iscas.service.log;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Service;

@Service
public class DamengLogService {
    @Autowired
    private SimpMessagingTemplate messagingTemplate;

    public void send(String jobId, String log) {
        messagingTemplate.convertAndSend("/topic/log/" + jobId, log);
    }
}
